<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="fm"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>商品订单列表</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css"
	href="statics/css/bootstrap.min.css">
<style>
* {
	margin: 0 auto;
	text-align: center;
	font-family: "微软雅黑"
}

#list {
	width: 800px;
	text-align: center;
	margin-top: 50px;
}
</style>


</head>

<body>
	<div id="list">
		<table class="table table-bordered">
			<tr>
				<th>商品编号</th>
				<th>商品名称</th>
				<th>商品价格</th>
				<th>库存数量</th>
				<th>订单状态</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${goodsList}" var="goods">
				<tr>
					<td>${goods.id}</td>
					<td>${goods.goodsName}</td>
					<td>${goods.goodsPrice}</td>
					<td>${goods.goodsCount}</td>
					<td><c:if test="${goods.billStatus == 0}">待处理</c:if> <c:if
							test="${goods.billStatus == 1}">处理中</c:if> <c:if
							test="${goods.billStatus == 2}">已处理</c:if>
					</td>
					<td><a
						href="${pageContext.request.contextPath }/goods/info/${goods.id}">操作</a>
					</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>
